package com.example.blogother.util;

import com.alibaba.fastjson.JSONObject;
import com.alipay.api.domain.Person;
import com.example.blogother.controller.HttpsUtil;


public class AddressUtil {
    public static void main(String[] args) {

        String url = "https://restapi.amap.com/v3/ip?key=73d4991acebdd39e191da9d1564c2dbb";
        String s = HttpsUtil.get(url);
        System.out.println(s);

        JSONObject object = JSONObject.parseObject(s);
        System.out.println("object = " + object.get("adcode"));


    }
}

